<?php
declare(strict_types=1);

namespace App\Resource\Activity\Halloween2022\Task;


use Illuminate\Http\Resources\Json\JsonResource;

class Resource extends JsonResource
{
    public function toArray($request)
    {
        return [
            "id" => $this->id,
            "type" => $this->type,
            "receive_type" => $this->receive_type,
            "count" => $this->count,
            // "status" => $this->status,
            "rewards" => empty($this->rewards) ? null : RewardResource::collection($this->rewards),
        ];
    }
}